package com.yingsheng.bi.hks.template.processor.impl;

import com.yingsheng.bi.hks.template.events.AdviceEvent;
import com.yingsheng.bi.hks.template.events.Event;
import com.yingsheng.bi.hks.template.processor.InnerProcessor;

public class ResponseFieldProcessor extends InnerProcessor {
    @Override
    public void execInner(Event event) {
        if (event instanceof AdviceEvent) {
            AdviceEvent adviceEvent = (AdviceEvent) event;
            adviceEvent.setInput(adviceEvent.getResponse());
            super.execInner(event);
        } else {
            super.execInner(event);
        }
    }
}
